<? $this->load->view('includes/header'); ?>
<? $this->load->view('includes/breadcrumb'); ?>
<? $this->load->view('includes/subnav'); ?>

<div id="content" class="wide">
    <div class="loginWrap">
        <form method="post" action="<?=base_url();?>index.php/login/validate">
            <fieldset class="loginForm">
                <legend>Login</legend>
                <label>E-mail address:</label><input type="text" name="emailAddress" /><br/>
                <label>Password:</label><input type="password" name="password" />
                <input type="submit" value="Login"/>
                <input type="button" value="Clear"/>
                <?
                $errorMsg = $this->session->flashdata('error');
                if($errorMsg){ echo '<p class=error>'.$errorMsg.'</p>'; }
                ?>
            </fieldset>
        </form>
    </div>
</div>

<? $this->load->view('includes/footer'); ?>